#pragma once
#include <qwidget.h>
class ProcessWidget:public QWidget
{
    Q_OBJECT
        Q_PROPERTY(int posX READ posX WRITE setPosX)
public:
    ProcessWidget(int id, QWidget* parent = nullptr);
    int posX() const;
    void setPosX(int x);

protected:
    void paintEvent(QPaintEvent* event) override;

private:
    int m_id;
    int m_posX;
   
};

